﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentDetail.aspx.cs"
    Inherits="EqRepair.Web.EquipmentDetail" MasterPageFile="~/Web/Site1.Master" %>

<asp:Content runat="server" ID="Content1" ContentPlaceHolderID="cphMainContent">
    <br />
    <br />
    <br />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <br />
    <table style="width: 50%;">
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="Наименование" />
            </td>
            <td>
                &nbsp;
            </td>
            <td width="150">
                <asp:TextBox ID="txtName" runat="server" ReadOnly="True" Width="80%" />
            </td>
            <td width="150" style="border-style: double; border-width: thin">
                Полученная иерархия</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="Краткое описание" />
            </td>
            <td>
                &nbsp;
                <td width="150">
                    <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Rows="3" 
                        ReadOnly="True" Width="80%" />
                <asp:TextBox ID="txtRepairTime" runat="server" ReadOnly="True" Width="80%" />
                </td>
                <td rowspan="7" width="150" 
                style="border-style: double; border-width: thin">
                    <asp:TreeView 
                        ID="TreeViewDet" runat="server" EnableClientScript="False" Enabled="False" 
                        EnableTheming="True" ShowLines="True">
                    </asp:TreeView>
                    <asp:Label ID="Label6" runat="server" Text="Иерархия обновиться после нажатия кнопки &quot;Сохранить&quot;" BorderStyle="Dotted"></asp:Label>
                </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label3" runat="server" Text="Межремонтный ресурс в днях" />
            </td>
            <td>
            </td>
            <td width="150">
                <asp:TextBox ID="txtLifeTime" runat="server" ReadOnly="True" Width="80%" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label5" runat="server" Text="Время ремонта" />
            </td>
            <td>
                &nbsp;
            </td>
            <td width="150">
                &nbsp;</tr>
        <tr>
            <td>
                <asp:Label ID="Label4" runat="server" Text="Стоимость ремонта" />
            </td>
            <td>
                &nbsp;
            </td>
            <td width="150">
                <asp:TextBox ID="txtCost" runat="server" ReadOnly="True" Width="80%" />
        </tr>
        <tr>
            <td>
                Список всех компонентов</td>
            <td>
                &nbsp;</td>
            <td width="150">
                Компоненты, включенные в декомпозицию</tr>
        <tr>
            <td>
                                    <asp:ListBox ID="lstAllEquipment" runat="server" 
                    Height="200px" Width="280px" />
            </td>
            <td>
                                    <asp:Button ID="btnAdd" runat="server" Text=">" 
                    OnClick="btnAdd_Click" />
                    <br />
                                    <asp:Button ID="btnDel" runat="server" Text="<" 
                    OnClick="btnDel_Click" />
                                </td>
            <td width="150">
                                    <asp:ListBox ID="lstCurrentEquipment" runat="server" 
                    Height="200px" Width="280px" />
        </tr>
        <tr>
            <td colspan="3" width="150">
                <asp:HiddenField ID="hfId" runat="server" />
            </td>
        </tr>
    </table>
    <asp:Button ID="btnAddEq" runat="server" Text="Создать" OnClick="btnAddEq_Click" /><asp:Button
        ID="btnUpdateEq" runat="server" Text="Сохранить" 
        OnClick="btnUpdateEq_Click" />
</asp:Content>
